package com.zhanggm.springcloud.user.api;

import com.zhanggm.springcloud.user.pojo.User;
import org.springframework.stereotype.Component;

@Component
public class UserFallbackImpl implements UserApi{
    @Override
    public User getUserById(Integer id) {
        User user = new User();
        user.setUsername("error");
        return user;
    }

    @Override
    public String getUsernameById(Integer id) {
        return "error";
    }
}
